const getters = {
  // getters模块管理
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  name: state => state.user.token,
  staffPhoto: state => state.user.userInfo.staffPhoto, // 用户头像
  username: state => state.user.userInfo.username, // 用户名字
  menus: state => state.user.userInfo.roles.menus
}
export default getters
